@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  display: flex;
  min-width: 320px;
  min-height: 100vh;
}

#app {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* 自定义滚动条样式 - 全局美化 */
/* Webkit内核浏览器 (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent; /* 去掉背景色 */
}

::-webkit-scrollbar-thumb {
  background: #aaa; /* 浅灰色滚动条 */
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #777; /* 悬停时变深 */
}

/* Firefox浏览器支持 */
* {
  scrollbar-width: thin;
  scrollbar-color: #aaa transparent;
}

/* 拖拽相关样式 */
.dragging {
  opacity: 0.5;
  cursor: grabbing !important;
}

.drop-zone {
  min-height: 50px;
  transition: all 0.2s;
}

.drop-zone-active {
  background-color: rgba(147, 197, 253, 0.1);
  border: 1px dashed #93c5fd;
}

/* 提及样式 */
.mention {
  display: inline-block;
  padding: 0 4px;
  border-radius: 2px;
  font-weight: 500;
}

.mention-character {
  background-color: #f9a8d4;
  color: #7e22ce;
}

.mention-organization {
  background-color: #93c5fd;
  color: #1d4ed8;
}

.mention-location {
  background-color: #2d6a4f;
  color: white;
}

.mention-plot {
  background-color: #fcd34d;
  color: #92400e;
}

.mention-event {
  background-color: #fb7185;
  color: #9f1239;
}